package com.group.eams.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.group.eams.pojo.dto.AssetDetailQueryDto;
import com.group.eams.pojo.dto.AssetReportQueryDto;
import com.group.eams.pojo.entity.AssetReport;
import com.group.eams.pojo.vo.AssetReportListVo;
import com.group.eams.pojo.vo.FixedAssetListVo;
import com.group.eams.service.AssetReportService;
import com.group.eams.mapper.AssetReportMapper;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 恩哲欣
* @description 针对表【asset_report(资产报修)】的数据库操作Service实现
* @createDate 2024-10-29 16:09:34
*/
@Service
public class AssetReportServiceImpl extends ServiceImpl<AssetReportMapper, AssetReport> implements AssetReportService{

    @Override
    public Page<AssetReportListVo> findAssetReportByPage(Page<AssetReport> page, AssetReportQueryDto assetReportQueryDto) {

        return getBaseMapper().findAssetReportByPage(page, assetReportQueryDto);
    }

    @Override
    public Page<FixedAssetListVo> findAssetReportDetailByPage(Page<AssetReport> page, AssetDetailQueryDto assetDetailQueryDto) {
        return  getBaseMapper().findAssetReportDetailByPage(page,assetDetailQueryDto);
    }


    @Override
    public List<AssetReport> findByAssetReportNum(String assetReportNum) {
        return getBaseMapper().findByAssetReportNum(assetReportNum);
    }

}
